/*
 * Copyright (C) 2015 MC
 * All rights reserved.
 *
 * $$File: $$
 * $$DateTime: $$
 * $$Author: $$
 * $$Revision: $$
 */

package com.glela.common.util;

import java.util.List;

/**
 * @author liujie
 */
public class Joiner
{
	public static String on(String oper, List<String> list)
	{
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < list.size(); i++) {
			if (i == 0) {
				sb.append(list.get(i));
			}
			else {
				sb.append(oper).append(list.get(i));
			}
		}

		return sb.toString();
	}
}
